﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace HomeBuyerTools
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }
        private void Mortage_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/MortagePayment/MortagePayment.xaml", UriKind.Relative));
        }

        //private void Affordability_Click(object sender, RoutedEventArgs e)
        //{
        //    NavigationService.Navigate(new Uri("/Views/HomeAffordability/HomeAffordability.xaml", UriKind.Relative));
        //}

        private void Insurance_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/HomeInsurance/HomeInsurance.xaml", UriKind.Relative));
        }

        //private void TaxSaving_Click(object sender, RoutedEventArgs e)
        //{
        //    NavigationService.Navigate(new Uri("/Views/MortgageTaxSavings/MortagageTaxSaving.xaml", UriKind.Relative));
        //}

        private void ByTerms_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/CompareLoansByTerm/CompareLoansByTerm.xaml", UriKind.Relative));
        }

        private void ByRate_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/CompareLoansByRate/CompareLoansByRate.xaml", UriKind.Relative));
        }

        //private void Fixed_Click(object sender, RoutedEventArgs e)
        //{
        //    NavigationService.Navigate(new Uri("/Views/FixedVsAdjustable/FixedVsAdjustable.xaml", UriKind.Relative));
        //}

        //private void Rent_Click(object sender, RoutedEventArgs e)
        //{
        //    NavigationService.Navigate(new Uri("/Views/RentVSBuy/RentVSBuy.xaml", UriKind.Relative));
        //}


        private void ValueProjection_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/HomeValueProjection/HomeValueProjection.xaml", UriKind.Relative));
        }



        private void Home_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/HomeRentOrBuy/HomeRentOrBuy.xaml", UriKind.Relative));
        }

        private void Gain_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/GainOnSaleOfHome/GainOnSaleOfHome.xaml", UriKind.Relative));
        }


        private void Closing_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/ClosingCostAnalysis/ClosingCostAnalysis.xaml", UriKind.Relative));
        }
    }
}